//根据开发环境配置请求地址
var urlConfig = ''
var env = ''

const baseApi = {
	// 开发版
	develop: 'https://shuatibao.smartppt.shop/',
	// 体验版
	trial: 'https://shuatibao.smartppt.shop/',
	// 正式版
	release: 'https://shuatibao.smartppt.shop/',
	// 灰度
	gray: 'https://shuatibao.smartppt.shop/',
}


const clientId = "96bff8a8118afc119fcd62d3da06fd1c";
// 1.小程序id
const appid = "wx7b5f7eb128b0c49b";
const wcxCode = "";
// 2.租户名称
const source = ""
// 3.个人中心 电话
const centerPhone = '15669969617'
// 4. 默认登录头像
const normalAvatar = 'https://iexpress-chire.oss-cn-beijing.aliyuncs.com/mainLogo_mini.jpeg'
// 5. logo
const logo = ''
// 6. appName
const appName = '让我测测你'


// 广告
const ad_banner = "1473457466"



/* #ifdef MP-WEIXIN */
// 获取当前帐号信息
const wxGetRunScene = () => {
	var url_config = ''
	const accountInfo = wx.getAccountInfoSync()
	// env类型
	env = accountInfo.miniProgram.envVersion
	url_config = baseURL(env)
	return url_config
}

const baseURL = env => {
	var url_config = ''
	url_config = baseApi[env]
	return url_config
}
urlConfig = wxGetRunScene()
/* #endif */


const config = {
	urlConfig,
	clientId,
	appid,
	centerPhone,
	source,
	logo,
	normalAvatar,
	appName,
	ad_banner,
}
module.exports = config